//
//  LRBaseViewController.m
//  本地生活圈
//
//  Created by admin on 15/8/10.
//  Copyright (c) 2015年 懒人. All rights reserved.
//

#import "LRBaseViewController.h"
#import "UIView+Toast.h"

@interface LRBaseViewController ()

@end

@implementation LRBaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
//    self.view.backgroundColor = [UIColor colorWithRed:rand()%255/255.0 green:rand()%255/255.0 blue:rand()%255/255.0 alpha:1.0];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

- (void)showLoadingView
{
    [self.view makeToastActivity];
}

- (void)hidenLoadingView
{
    [self.view hideToastActivity];
}

- (void)showErrorMessage:(NSString *)msg
{
    [self.view makeToast:msg];
}



@end
